@import './base.css';

/* #app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  font-weight: normal;
} */

a,
.green {
  text-decoration: none;
  color: hsla(160, 100%, 37%, 1);
  transition: 0.4s;
  padding: 3px;
}

@media (hover: hover) {
  a:hover {
    background-color: hsla(160, 100%, 37%, 0.2);
    text-decoration: underline;
  }
}

/*
 * 媒体查询，括号里是条件，这里就是至少宽度是1024，执行里面的规则
 */
/* @media (min-width: 1024px) {
  body {
    display: flex;
    place-items: center;
  }

  #app {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 2rem;
  }
} */

.margin-top-bottom-10{
  margin: 10px 0px;
}

.main {
  padding: 20px;
}

.flex{
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.h-center{
  justify-content: center; /* 水平居中 */
}

.v-center{
  align-items: center;     /* 垂直居中 */
}

.gap-4 {
  gap: 1rem;
  row-gap: 1rem;
  column-gap: 1rem;
}